/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.modulars.business.equipment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.opsli.modulars.business.equipment.entity.*;
import org.opsli.modulars.business.fileManage.entity.FileManage;

import java.util.List;

/**
 * 调度日志 Mapper
 *
 * @author zk
 * @date 2021-09-14 15:53:53
 */
@Mapper
public interface ScheduleLogMapper extends BaseMapper<ScheduleLog> {

    int  insertScheduleLog(ScheduleLog scheduleLog);

    int  insertUpgradeLog(UpgradeLog scheduleLog);

    public Cmd485Send selectCmd485(@Param("deviceId")String deviceId);

    public CmdValveConfigSend selectCmdValve(@Param("deviceId")String deviceId);

    int  updateCmd485(Cmd485Send cmd485Send);

    int  updateCmdValve(CmdValveConfigSend cmdValveConfigSend);

    public GatewayMonitorData getGatewayMonitorData(@Param("deviceId")String deviceId);

    public ValveMonitorData getValveMonitorData(@Param("deviceId")String deviceId);

    public int insertGatewayMonitorData(GatewayMonitorData data);

    public int insertValveMonitorData(ValveMonitorData data);

    public int updateGatewayMonitorData(GatewayMonitorData data);

    public int updateValveMonitorData(ValveMonitorData data);

    public int insertGatewayMonitorDataNow(GatewayMonitorDataNow data);

    public int insertValveMonitorDataNow(ValveMonitorDataNow data);

    public int updateGatewayMonitorDataNow(GatewayMonitorDataNow data);

    public int updateValveMonitorDataNow(ValveMonitorDataNow data);

    public GatewayMonitorDataNow getGatewayMonitorDataNow(@Param("deviceId")String deviceId);

    public ValveMonitorDataNow getValveMonitorDataNow(@Param("deviceId")String deviceId);


}
